import request from '@/utils/request';
import { getPageSize } from '@/utils/common';

export async function verificationList(params) {
  params.pageSize = params.pageSize || getPageSize();
  return request(`/server/api/tms/tms-annual-audit/selectList`, {
    method: 'POST',
    body: params,
  });
}

export async function verificationDetail(params) {
  return request(`/server/api/tms/tms-annual-audit/viewDetails`, {
    method: 'POST',
    body: params,
  });
}

export async function verificationAdd(params) {
  return request(
    `/server/api/tms/tms-annual-audit/insertYearAudit`,
    {
      method: 'POST',
      body: params,
    },
    true
  );
}

export async function verificationEdit(params) {
  return request(
    `/server/api/tms/tms-annual-audit/updateYearAudit`,
    {
      method: 'POST',
      body: params,
    },
    true
  );
}
//查询车辆列表
export async function carList(params) {
  return request(
    `/server/api/tms/tms-annual-audit/selectVehicle`,
    {
      method: 'POST',
      body: params,
    },
    true
  );
}
/**
 * 生成账单
 */
export async function generatedBills(params) {
  return request(`/server/api/tms/tms-annual-audit/generateBill`, {
    method: 'POST',
    body: params,
  });
}
//删除证件
export async function delPapers(params) {
  return request(`/server/api/tms/tms-annual-audit/deleteTmsInspection`, {
    method: 'POST',
    body: params,
  });
}

export async function selectAll(params) {
  return request(`/server/api/tms/tms-annual-audit/generateBillByCheckAll`, {
    method: 'POST',
    body: params,
  });
}
